package com.tencent.search.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * 视频表
 * 
 * @author ian
 * @email ian.ren121@gmail.com
 * @date 2022-04-21 19:34:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "video",type = "doc")
public class VideoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 视频ID
	 */
	@Id
	private Integer id;
	/**
	 * 视频存储地址
	 */
	private String videoAddress;
	/**
	 * 视频长度
	 */
	private Double videoLength;
	/**
	 * 视频名称
	 */
	@Field(type = FieldType.Keyword)
	private String videoName;
	/**
	 * 视频状态
	 */
	private String videoStatus;
	/**
	 * 
	 */
	private Integer chapterId;

}
